import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;


public class AccountTest {
	Account account;
	@Before
	public void setUp() throws Exception {
	}
	
	@After
	public void tearDown() throws Exception {
	}
	
	@Test
	public void testAccount() {
		account = new CheckingAccount("name", "street", "12587", "town", "country", 357950);
		assertTrue(account.fAccountNumber == 357950);
		account = new SavingsAccount("name", "street", "12587", "town", "country", 357950);
		assertTrue(account.fAccountNumber == 357950);
	}
	
	@Test
	public void testVerseMoney() {
		account = new CheckingAccount("name", "street", "12587", "town", "country", 357950);
		account.verseMoney(50000);
		assertTrue(account.fBalance == 50000);
		account = new SavingsAccount("name", "street", "12587", "town", "country", 357950);
		account.verseMoney(50000);
		assertTrue(account.fBalance == 50000);
	}
	
}
